package com.kingmed.kmss.admin.modules.ums.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kingmed.kmss.admin.modules.ums.model.UmsBpmnMembership;
import com.kingmed.kmss.common.dto.admin.ums.AdminDTO;
import com.kingmed.kmss.common.dto.admin.ums.BpmnGroupDTO;
import com.kingmed.kmss.common.dto.admin.ums.BpmnMembershipDTO;
import com.kingmed.kmss.common.dto.admin.ums.BpmnQueryDTO;

import java.util.List;

/**
 * <p>
 * 后台流程角色与用户关联表 Mapper 接口
 * </p>
 *
 * @author wyl
 * @since 2023-02-17
 */
public interface UmsBpmnMembershipMapper extends BaseMapper<UmsBpmnMembership> {

    List<BpmnGroupDTO> listByParam(BpmnQueryDTO queryDTO);

    List<AdminDTO> listAdminInGroup(Long groupId);

    List<BpmnMembershipDTO> adminInGroup(Long groupId);

    List<BpmnMembershipDTO> queryList(BpmnQueryDTO queryDTO);
}
